package com.bz.xtcx.manager.service;

import com.bz.xtcx.manager.comom.XtcxException;
import com.bz.xtcx.manager.entity.CmsExchanges;
import com.bz.xtcx.manager.entity.CmsExchangesEnroll;
import com.bz.xtcx.manager.vo.VoQueryExchanges;
import com.bz.xtcx.manager.vo.VoResponse;
import com.github.pagehelper.PageInfo;

import java.io.OutputStream;
import java.util.List;

public interface ICmsExchangesService {

	VoResponse saveOrUpdate(CmsExchanges t);
	
	int del(String id);
	
	List<CmsExchanges> getAll();
	
	CmsExchanges getById(String id);
	
	PageInfo<CmsExchanges> getPageByCondition(VoQueryExchanges t, int pageNum, int pageSize, String orderBy) throws XtcxException;
	
	PageInfo<CmsExchangesEnroll> getEnrollPageByCondition(VoQueryExchanges t, int pageNum, int pageSize, String orderBy);
	
	boolean check(String id);
	
	VoResponse check(List<String> ids);
	
	VoResponse reject(String id, String info);
	
	VoResponse onOrOff(String id, int val);
	
	VoResponse isTop(String id, int val);

	VoResponse taskDoingSum();

	VoResponse exportEnroll(VoQueryExchanges lib, OutputStream out);
}
